<template>
	<view class="order_room">
		<!-- #ifdef APP-PLUS -->
		<top-set></top-set>
		<tab-top fixed="true" title="预约房间"></tab-top>
		<!-- #endif -->
		<view class="header">
			<scroll-view scroll-x class="scroll_x">
				<view class="header_item" v-for="(item, index) in newData" :key="index" @tap="selectTheFloor(index)">
					<view :class="{ floor: index == current }">{{ item.storey }}楼</view>
					<view :class="{ icon: index == current }"></view>
				</view>
			</scroll-view>
		</view>
		<swiper class="content" :current="current" :style="{ height: floor }" @change="changeCar($event)">
			<swiper-item class="content_item" v-for="(item, index) in newData" :key="index">
				<view class="box" v-for="(list, key) in item.lists" :key="key">
					<view class="box_list" v-for="(v, i) in list" :key="i">
						<view class="list_item0 list_item" v-if="v.is_show == '0'">
							<image src="/static/order/item0.png"></image>
							<view>{{ v.room_no }}{{ v.room_type.sign }}</view>
						</view>
						<view class="list_item1 list_item" v-if="v.is_show == '1'" @tap="changeShow(v, item.storey)">
							<image src="/static/order/item1.png"></image>
							<view>{{ v.room_no }}{{ v.room_type.sign }}</view>
						</view>
						<view class="list_item2 list_item" v-if="v.is_show == '2'" @tap="changeShow(v, item.storey)">
							<image src="/static/order/item2.png"></image>
							<view>{{ v.room_no }}{{ v.room_type.sign }}</view>
						</view>
					</view>
				</view>
				<view class="prompt">
					<view class="items uni-clearfix">
						<image src="/static/order/item1.png"></image>
						<view class="item">需要打扫</view>
					</view>
					<view class="items">
						<image src="/static/order/item0.png"></image>
						<view class="item">不需要打扫</view>
					</view>
					<view class="items">
						<image src="/static/order/item2.png"></image>
						<view class="item">选中打扫</view>
					</view>
				</view>
				<view class="bg1"></view>
				<view class="service_list">
					<view class="title">价格</view>
					<t-table>
						<t-tr>
							<t-th>酒店类型</t-th>
							<t-th>双床/间</t-th>
							<t-th>大床/间</t-th>
							<t-th>套房/间</t-th>
							<t-th>总统/间</t-th>
						</t-tr>
						<t-tr v-for="(item4, index4) in service_type" :key="index4">
							<t-td>{{ item4.name }}</t-td>
							<t-td>{{ item4.standard_price }}</t-td>
							<t-td>{{ item4.big_price }}</t-td>
							<t-td>{{ item4.suite_price }}</t-td>
							<t-td>{{ item4.presidential_suite_price == '0.00' ? '/' : item4.presidential_suite_price }}</t-td>
						</t-tr>
					</t-table>
				</view>
				<view class="bg1"></view>
				<view class="bz" @tap="bz">
					<view>请选择服务标准</view>
					<view class="right">
						<view>{{ serveData.name || service_type.name || '请选择' }}</view>
						<image src="/static/icon/right.png" mode=""></image>
					</view>
				</view>
				<view class="bg1"></view>
				<view class="text">
					<view class="p">温馨提示：</view>
					<view class="p" v-for="(item,index) in tips" :key="index">{{index+1 + '、' + item}}</view>
				</view>
			</swiper-item>
		</swiper>
		<view class="footer">
			<view class="sweep">
				<view>设置保洁到店时间</view>
				<view class="sweep_item" @tap="onShowDate">
					<view style="margin-right: 12upx;display: flex;">{{ dateTime }}</view>
					<image src="/static/personal-center/right.png"></image>
				</view>
			</view>
			<view class="subscribe">
				<view class="box" @tap="total(0)">
					<view>合计：</view>
					<view class="box_item" v-if="count">{{ count }}</view>
					<view class="item">￥{{ price }}</view>
				</view>
				<view class="btn" @tap="goSubscribe({ count, price, dateTime, orderArray1 })">立即预约</view>
			</view>
		</view>
		<!-- 弹层 -->
		<layer v-if="layerShow">
			<view slot="text1">您将发布{{ count }}间客房打扫</view>
			<view slot="text2">预约成功后，产生的费用会自动从您的余额中锁定</view>
			<view slot="btn1" @tap="layerClose">我在想想</view>
			<view slot="btn2" @tap="layerFinish">立即预约</view>
		</layer>

		<!-- 选择时间 -->
		<jc-popUp position="bottom" ref="pop2" markTapHide="true">
			<view class="pop2">
				<view class="title">请选择服务时间</view>
				<picker-view :value="value" @change="bindChange" @touchmove.stop="changeStart" class="picker">
					<picker-view-column class="picker1">
						<view class="item">今天({{ days1 }})</view>
						<view class="item">明天({{ days2 }})</view>
						<view class="item">后天({{ days3 }})</view>
					</picker-view-column>
					<picker-view-column v-show="show_H">
						<view v-for="(item1, index1) in H" :key="index1">{{ item1 }}点</view>
					</picker-view-column>
					<picker-view-column v-show="!show_H">
						<view v-for="(item1, index1) in h" :key="index1">{{ item1 }}点</view>
					</picker-view-column>
					<picker-view-column v-show="show_M">
						<view v-for="(item2, index2) in M" :key="index2">{{ item2 }}分</view>
					</picker-view-column>
					<picker-view-column v-show="!show_M">
						<view v-for="(item2, index2) in m" :key="index2">{{ item2 }}分</view>
					</picker-view-column>
				</picker-view>
				<view class="btn" @tap="pickerData">确定</view>
			</view>
		</jc-popUp>

		<!-- 选择服务 -->
		<jc-popUp position="bottom" ref="pop6" markTapHide="true">
			<view class="bz_">
				<view class="item">请选择服务标准?</view>
				<view class="item" v-for="(item3, index3) in service_type" :key="index3" @tap="serve(item3)">{{ item3.name }}</view>
				<view class="item" @tap="serve(0)">取消</view>
			</view>
		</jc-popUp>

		<jc-popUp position="bottom" ref="pop4" markTapHide="true">
			<view class="footer footer_">
				<view class="popup">
					<view class="popup_i"><view>房间明细</view></view>
					<view class="popup_item">
						<view style="width: 1em;">标间</view>
						<view>￥{{ serveData.standard_price || service_type[0].standard_price || 0 }}</view>
						<view>×{{ standard_room_count || 0 }}</view>
					</view>
					<view class="popup_item">
						<view style="width: 1em;">大床房</view>
						<view>￥{{ serveData.big_price || service_type[0].big_price || 0 }}</view>
						<view>×{{ big_room_count || 0 }}</view>
					</view>
					<view class="popup_item">
						<view style="width: 1em;">套房</view>
						<view>￥{{ serveData.suite_price || service_type[0].suite_price || 0 }}</view>
						<view>×{{ suite_room_count || 0 }}</view>
					</view>

					<view class="popup_item" v-if="serveData.name=='高档型'||serveData.name =='豪华型'||service_type.name =='高档型'||service_type.name =='豪华型'">
						<view style="width: 1em;">总统房</view>
						<view>￥{{ serveData.presidential_suite_price || service_type[0].presidential_suite_price || 0 }}</view>
						<view>×{{ president_room_count || 0 }}</view>
					</view>
					
				</view>
				<view class="subscribe">
					<view class="box" @tap="total(1)">
						<view>合计：</view>
						<view class="box_item" v-if="count">{{ count }}</view>
						<view class="item">￥{{ price }}</view>
					</view>
					<view class="btn" @tap="goSubscribe({ count, price, dateTime, orderArray1 }, 1)">立即预约</view>
				</view>
			</view>
		</jc-popUp>
	</view>
</template>

<script>
let flag = false,
	tTime;
import moment from 'moment';
import tTable from '@/components/t-table/t-table.vue';
import tTh from '@/components/t-table/t-th.vue';
import tTr from '@/components/t-table/t-tr.vue';
import tTd from '@/components/t-table/t-td.vue';
import layer from '@/components/layer/layer.vue';
import jcPopUp from '@/components/jc-popUp/jc-popUp.vue';
export default {
	data() {
		return {
			standard_room_count: 0,
			big_room_count: 0,
			suite_room_count: 0,
			president_room_count: 0,
			service_type: [],
			serveData: [],
			tips:[],
			show_H: false,
			show_M: false,
			tipsLength:0,
			value: [0, 0, 0],
			visible: [],
			days1: '',
			days2: '',
			days3: '',
			days11: '',
			days22: '',
			days33: '',

			H: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23],
			M: ['00', 10, 20, 30, 40, 50],
			h: [],
			m: [],

			YY: '',
			MM: '',
			show: false,
			current: 0,
			floor: 0,
			count: 0,
			price: 0,
			newData: [],
			dateTime: '',
			orderArray1: [],
			orderArray2: [],
			layerShow: false,
			service_list: []
		};
	},
	onLoad() {
		this.timeData();
		this.listData();
	},
	methods: {
		timeData() {
			/**
			 * 当前时间
			 */
			let date = new Date().getTime();
			let oneDay = 24 * 60 * 60 * 1000;
			this.dateTime = moment(date + 1800000).format('YYYY-MM-DD HH:mm');

			this.days1 = moment(date).format('M月D日');
			this.days11 = moment(date).format('MM-DD');
			this.days2 = moment(date + oneDay).format('M月D日');
			this.days22 = moment(date + oneDay).format('MM-DD');
			this.days3 = moment(date + oneDay * 2).format('M月D日');
			this.days33 = moment(date + oneDay * 2).format('MM-DD');

			this.YY = moment(date).format('YYYY');
			this.MM = moment(date).format('MM');

			let HH = moment(date).format('HH'); //当前时
			let MMdata = moment(date).format('mm'); //当前分
			let MM = Math.ceil(MMdata / 10) * 10; //格式化

			let h = [],
				m = [];
			if (HH == 23 && MM > 50) {
				//23:50 以后
				this.m = ['00'];
				this.h = ['00'];
				return;
			}
			if (MM > 50) {
				for (HH; HH < 24; HH++) {
					h.push(HH);
				}
				h.splice(0, 1);
				this.m = ['00', 10, 20, 30, 40, 50];
				this.h = h;
				return;
			}
			for (HH; HH < 24; HH++) {
				h.push(HH);
			}
			for (MM; MM < 60; MM += 10) {
				m.push(MM);
			}
			this.h = h;
			this.m = m;
		},
		listData() {
			/**
			 * 整理后台数据
			 */
			this.req(
				{
					url: 'hotel/room',
					method: 'GET',
					data: {
						hotel_id: this.isLogin().hotel_id,
						limit: 99999,
						is_show: true
					}
				},
				res => {
					//console.log(res)
					function sortNumber(a, b) {
						return a - b;
					}
					this.tips = res.data.data.tips;
					let tipsLength = 0;
					this.tips.forEach(val=>{
						tipsLength = Math.ceil(val.length/22)
						this.tipsLength += (tipsLength*45 + 12)
					})
					let lists = res.data.data.list;
					//酒店类型
					let service_type = res.data.data.service_type;
					let service_type_ = [];
					for (let index2 in service_type) {
						let key = service_type[index2].key;
						service_type_[key] = service_type[index2];
					}
					this.service_type = service_type_;
					this.serveData = this.service_type[0];
					//数组去重
					let storeySet = new Set();
					lists.forEach(v => {
						storeySet.add(v.storey);
					});
					let storey = [...storeySet];
					//数组排序
					storey.sort(sortNumber);
					//数据整理
					let newlists1 = [];
					lists.forEach(v => {
						storey.forEach((k, i) => {
							if (v.storey == k) {
								newlists1[i] ? '' : (newlists1[i] = []);
								newlists1[i].push(v);
							}
						});
					});
					//数组重组
					let newlists2 = [];
					newlists1.forEach(v => {
						let result = {};
						result.lists = [];
						for (var i = 0; i < v.length; i += 5) {
							result.lists.push(v.slice(i, i + 5));
							result.storey = v[i].storey;
						}
						newlists2.push(result);
					});
					//整理数据赋值
					this.newData = newlists2;
					//console.log(this.newData)
					let height = this.newData[0].lists.length * 126 + 1100 + this.tipsLength;
					this.floor = uni.upx2px(height) + 'px';
				}
			);
		},
		changeStart() {
			if (tTime) {
				clearTimeout(tTime);
			}
			flag = true;
			tTime = setTimeout(() => {
				flag = false;
			}, 1500);
		},
		bz() {
			/**
			 * 显示服务标准
			 */
			this.$refs.pop6.show();
		},
		serve(e) {
			/**
			 * 服务标准
			 */
			if (!e) {
				this.$refs.pop6.hide();
				return;
			}
			this.serveData = e;
			console.log(this.serveData);
			this.priceData();
			this.$refs.pop6.hide();
		},
		pickerData() {
			/**
			 * 选择时间
			 */
			if (flag) {
				console.log(111);
				return;
			}
			this.$refs.pop2.hide();
			console.log(this.visible);
			if (!this.visible.length) {
				this.dateTime = this.YY + '-' + this.days11 + ' ' + this.h[0] + ':' + this.m[0];
				return;
			}
			if (this.visible[0] > 0) {
				//第二.三天
				this.dateTime = this.YY + '-' + this['days' + (this.visible[0] + 1) + (this.visible[0] + 1)] + ' ' + this.H[this.visible[1]] + ':' + this.M[this.visible[3]];
				return;
			}
			if (this.visible[0] == 0 && this.visible[3] == 0 && this.visible[5] == 0) {
				//第一天 不选择 或者选择又回到0.0.0
				this.dateTime = this.YY + '-' + this.days11 + ' ' + this.h[0] + ':' + this.m[0];
				console.log(444);
				return;
			}
			if (this.visible[0] == 0 && this.visible[2] != 0 && this.visible[5] != 0) {
				//第一天 选择非0的时间 0分钟
				this.dateTime = this.YY + '-' + this.days11 + ' ' + this.h[this.visible[2]] + ':' + this.M[this.visible[3]];
				console.log(222);
				return;
			}
			if (this.visible[0] == 0 && this.visible[3] == 0 && this.visible[5] != 0) {
				//第一天 且此时只选分钟
				this.dateTime = this.YY + '-' + this.days11 + ' ' + this.h[this.visible[2]] + ':' + this.m[this.visible[4]];
				console.log(333);
				return;
			}
			if (this.visible[0] == 0 && this.visible[3] != 0) {
				//第一天 选择非0的时间 和任意分钟
				this.dateTime = this.YY + '-' + this.days11 + ' ' + this.h[this.visible[2]] + ':' + this.M[this.visible[3]];
				console.log(222);
				return;
			}
		},
		bindChange(e) {
			/**
			 * 选择时间
			 */
			console.log(e);
			flag = false;
			if (e.target.value[0] == 0 && e.target.value[2] == 0) {
				this.show_M = false;
				this.show_H = false;
				this.visible = e.target.value;
				return;
			}
			if (e.target.value[0] == 0 && e.target.value[2] > 0) {
				this.show_H = false;
				this.show_M = true;
				this.visible = e.target.value;
				return;
			}
			if (e.target.value[0] > 0) {
				this.show_H = true;
				this.show_M = true;
				this.visible = e.target.value;
				return;
			}
		},
		selectTheFloor(index) {
			/**
			 * 点击tab导航swiper同步
			 */
			this.current = index;
		},
		changeCar(e) {
			/**
			 * 滑动tab同步 动态改变swiper高度
			 */
			this.current = e.target.current;
			let height = this.newData[e.target.current].lists.length * 126 + 1100 + this.tipsLength;
			this.floor = uni.upx2px(height) + 'px';
		},
		total(e) {
			if (e) {
				this.$refs.pop4.hide();
				return;
			}
			this.$refs.pop4.show();
		},
		goSubscribe(e, type) {
			/**
			 * 提交数据
			 */
			if (type == 1) {
				this.$refs.pop4.hide();
			}
			this.openlayer(() => {
				let that = this;
				e.name = this.serveData.name || this.service_type.name;
				let order = JSON.stringify(e);
				console.log(order);
				/**
				 * 确认上传后台
				 */
				that.req(
					{
						url: 'both/Order',
						method: 'POST',
						data: {
							hid: that.isLogin().hotel_id,
							room_id: JSON.stringify(that.orderArray2),
							subscribe_time: that.dateTime,
							service_id: this.serveData.id
						}
					},
					resp => {
						console.log(resp);
						if (resp.data.status == 1) {
							uni.navigateTo({
								url: './order-success?order=' + order
							});
							return;
						}
						uni.showToast({
							title: resp.data.message,
							icon: 'none'
						});
					}
				);
			});
		},
		/**
		 * 蒙层返回完成
		 */
		layerFinish() {},
		/**
		 * 关闭蒙层
		 */
		layerClose() {
			this.layerShow = false;
		},
		/**
		 * 打开蒙层
		 */
		openlayer(callback) {
			this.layerShow = true;
			this.layerFinish = () => {
				this.layerClose();
				callback();
			};
		},
		changeShow(v, f) {
			/**
			 * 点击房子 改变数量count,价格price,增加减少数组：房号
			 */
			let item1 = {
				room: v.room_no + v.room_type.sign,
				storey: f
			};
			let item2 = v.id;
			if (1 == v.is_show) {
				v.is_show = 2;
				this.count++;
				switch (v.room_type.sign) {
					case 'D':
						this.big_room_count++;
						break;
					case 'B':
						this.standard_room_count++;
						break;
					case 'T':
						this.suite_room_count++;
						break;
					case 'Z':
						this.president_room_count++;
						break;
				}
				this.orderArray1.push(item1);
				this.orderArray2.push(item2);
			} else {
				v.is_show = 1;
				this.count--;
				switch (v.room_type.sign) {
					case 'D':
						this.big_room_count--;
						break;
					case 'B':
						this.standard_room_count--;
						break;
					case 'T':
						this.suite_room_count--;
						break;
					case 'Z':
						this.president_room_count--;
						break;
				}
				this.orderArray1.forEach((val, index) => {
					//console.log(val,item1)
					if (item1.room == val.room) {
						this.orderArray1.splice(index, 1);
					}
				});
				this.orderArray2.forEach((val, index) => {
					if (item2 == val) {
						this.orderArray2.splice(index, 1);
					}
				});
			}
			this.priceData();
			console.log(this.orderArray1);
			console.log(this.orderArray2);
		},
		priceData() {
			/**
			 * 总价
			 */
			let big_room_count;
			let standard_room_count;
			let suite_room_count;
			let president_room_count;
			if (this.serveData) {
				big_room_count = this.big_room_count * this.serveData.big_price;
				standard_room_count = this.standard_room_count * this.serveData.standard_price;
				suite_room_count = this.suite_room_count * this.serveData.suite_price;
				console.log(this.serveData.presidential_suite_price != '/')
				if (this.serveData.presidential_suite_price == '/') {
					president_room_count = 0;
				}else{
					president_room_count = this.president_room_count * this.serveData.presidential_suite_price;
				}
			}
			this.price = big_room_count + standard_room_count + suite_room_count + president_room_count;
		},
		onShowDate() {
			this.$refs.pop2.show();
		}
	},
	components: { jcPopUp, layer, tTable, tTh, tTr, tTd }
};
</script>

<style scoped lang="scss">
.order_room {
	width: 750upx;
	letter-spacing: 0px;
	.header {
		width: 750upx;
		height: 110upx;
		position: fixed;
		/* #ifdef APP-PLUS */
		top: var(--status-bar-height + 86);
		/* #endif */
		/* #ifdef MP-WEIXIN */
		top: 0;
		/* #endif */
		left: 0;
		z-index: 2;
		background-color: #f8f8f8;
		.scroll_x {
			white-space: nowrap;
			.header_item {
				padding: 33upx 42upx;
				height: 44upx;
				display: inline-block;
				text-align: center;
				font-size: 32upx;
				line-height: 32upx;
				color: #999999;
				vertical-align: text-top;
				.floor {
					color: #3595f9;
				}
				.icon {
					margin: 0 auto;
					margin-top: 10upx;
					width: 20upx;
					height: 4upx;
					background-color: #3595f9;
					border-radius: 2upx;
				}
			}
		}
	}
	.content {
		margin-top: 110upx;
		.content_item {
			.box:after {
				position: absolute;
				left: 26upx;
				bottom: 0;
				content: '';
				width: 650upx;
				height: 2upx;
				background: #e5e5e5;
				z-index: 99;
			}
			.box:nth-last-child(3):after {
				content: '';
				height: 0upx;
			}
			.box {
				width: 702upx;
				padding: 0 24upx;
				position: relative;
				height: 126upx;
				display: flex;
				align-items: center;
				font-size: 28upx;
				line-height: 30upx;
				.box_list {
					width: 20%;
					text-align: center;
					image {
						width: 60upx;
						height: 60upx;
					}
					.list_item0 {
						color: #e5e5e5;
					}
					.list_item1 {
						color: #999999;
					}
					.list_item2 {
						color: #3595f9;
					}
				}
			}
		}
		.prompt {
			width: 474upx;
			height: 26upx;
			padding: 33upx 138upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.items {
				font-size: 20upx;
				image {
					width: 26upx;
					height: 26upx;
					float: left;
					margin-right: 12upx;
				}
				.item {
					float: right;
				}
			}
		}
		.bg1 {
			width: 750upx;
			height: 10upx;
			background-color: #e5e5e5;
		}
		.bz {
			width: 702upx;
			height: 100upx;
			padding: 0 24upx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 30upx;
			color: #333;
			.right {
				display: flex;
				align-items: center;
				color: #999;
				image {
					margin-left: 10upx;
					width: 20upx;
					height: 20upx;
				}
			}
		}
		.service_list {
			width: 702upx;
			padding: 0 24upx 30upx 24upx;
			.title {
				font-size: 32upx;
				padding: 50upx 0 30upx 0;
			}
		}
		.text {
			margin-top: 52upx;
			padding: 0 24upx;
			.p {
				font-size: 30upx;
				color: #999;
				line-height: 45upx;
				margin-bottom: 12upx;
			}
		}
	}
	.footer_ {
		width: 100%;
		height: 500upx;
		background: #ffffff;
		position: absolute;
		bottom: 100upx;
		right: 0;
	}
	.bz_ {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 750upx;
		height: auto;
		background-color: #ffffff;
		.item:nth-child(1) {
			font-size: 24upx;
			color: #999999;
			border-bottom: 1upx solid #e5e5e5;
		}
		.item:nth-last-child(2) {
			border-bottom: 19upx solid #e5e5e5;
		}
		.item {
			height: 100upx;
			line-height: 100upx;
			font-size: 28upx;
			text-align: center;
		}
	}
	.footer {
		width: 750upx;
		height: auto;
		background: #fff;
		boder-top: 1upx solid #e5e5e5;
		position: fixed;
		bottom: 0;
		left: 0;
		.sweep {
			width: 702upx;
			font-size: 28upx;
			padding: 0 24upx;
			height: 100upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background: #f8f8f8;
			.sweep_item {
				display: flex;
				align-items: center;
			}
			image {
				width: 12upx;
				height: 22upx;
			}
		}
		.popup {
			font-size: 28upx;
			.popup_item:nth-last-child(1) {
				border-bottom: none;
			}
			.popup_item {
				width: 702upx;
				padding: 0 24upx;
				height: 100upx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				white-space: nowrap;
				border-bottom: 1upx solid #e5e5e5;
			}
			.popup_i {
				height: 100upx;
				display: flex;
				justify-content: center;
				align-items: center;
				color: #999;
				font-size: 24upx;
			}
		}
		.subscribe {
			width: 750upx;
			font-size: 28upx;
			height: 98upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.box {
				width: 50%;
				padding-left: 24upx;
				display: flex;
				position: relative;
				height: auto;
				.box_item {
					width: 26upx;
					height: 26upx;
					border-radius: 50%;
					font-size: 18upx;
					color: #fff;
					text-align: center;
					line-height: 26upx;
					background-color: #f93735;
					position: absolute;
					left: 70upx;
					top: -10upx;
				}
				.item {
					color: #f93735;
				}
			}
			.btn {
				width: 50%;
				background-color: #3595f9;
				border-radius: 8upx 0px 0px 8upx;
				text-align: center;
				line-height: 90upx;
				font-size: 32upx;
				color: #fff;
			}
		}
	}
	.pop2 {
		background-color: #fff;
		position: fixed;
		left: 0;
		bottom: 0;
		height: auto;
		.title {
			font-size: 28upx;
			color: #999;
			height: 100upx;
			line-height: 100upx;
			width: 702upx;
			padding: 0 24upx;
		}
		.picker {
			height: 300upx;
			text-align: center;
			font-size: 36upx;
			picker-view-column.picker1 {
				flex: 2 !important;
			}
		}
		.btn::before {
			display: block;
			content: '';
			width: 750upx;
			height: 20upx;
			background-color: #f8f8f8;
		}
		.btn {
			font-size: 32upx;
			color: #333;
			height: 120upx;
			line-height: 100upx;
			text-align: center;
		}
	}
	.orderDate {
		width: 80%;
		height: auto;
		position: fixed;
		left: 10%;
		top: 20%;
	}
}
</style>
